package org.jeecg.modules.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.system.entity.SysUserReport;
import org.jeecg.modules.system.model.WorkHourVo;

/**
 * @Description: sys_user_report
 * @Author: jeecg-boot
 * @Date: 2022-10-06
 * @Version: V1.0
 */
public interface SysUserReportMapper extends BaseMapper<SysUserReport> {

    List<SysUserReport> queryList(@Param("date") String date, @Param("userId") String userId, @Param("limit") Integer limit);

    Page<SysUserReport> queryPage(@Param("page") Page<SysUserReport> page, @Param("dateStart") String dateStart,
                                  @Param("dateEnd") String dateEnd, @Param("userId") String userId, @Param("strength") String strength);

    Integer workHour(@Param("date") String date, @Param("roleId") String roleId, @Param("userId") String userId);

    List<WorkHourVo> workHourChar(@Param("date") String date, @Param("roleId") String roleId, @Param("userId") String userId, @Param("depts") List<String> depts);

}
